package cn.abcsys.cloud.devops.pipeline.entity;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;

public class TaskEvent {
	private Integer eventId;
	@JsonSerialize(using = DateSerializer.class)
	private Date eventTime;
	private String eventName;
	private Integer taskId;
	private String eventResult;
	private Integer excuteTimes;
	private long eventTimeUsed;
	private String messageInfo;
	private byte eventStep;
	private Integer eventCreator;
	public Integer getEventId() {
		return eventId;
	}
	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}
	public Date getEventTime() {
		return eventTime;
	}
	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}
	public Integer getTaskId() {
		return taskId;
	}
	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}
	public TaskEvent() {
		super();
	}
	
	public String getEventName() {
		return eventName;
	}
	public void setEventName(String eventName) {
		this.eventName = eventName;
	}
	public String getEventResult() {
		return eventResult;
	}
	public void setEventResult(String eventResult) {
		this.eventResult = eventResult;
	}
	
	public Integer getExcuteTimes() {
		return excuteTimes;
	}
	public void setExcuteTimes(Integer excuteTimes) {
		this.excuteTimes = excuteTimes;
	}
	public String getMessageInfo() {
		return messageInfo;
	}
	public void setMessageInfo(String messageInfo) {
		this.messageInfo = messageInfo;
	}
	public byte getEventStep() {
		return eventStep;
	}
	public void setEventStep(byte eventStep) {
		this.eventStep = eventStep;
	}
	public long getEventTimeUsed() {
		return eventTimeUsed;
	}
	public void setEventTimeUsed(long eventTimeUsed) {
		this.eventTimeUsed = eventTimeUsed;
	}
	public Integer getEventCreator() {
		return eventCreator;
	}
	public void setEventCreator(Integer eventCreator) {
		this.eventCreator = eventCreator;
	}
	public TaskEvent(String eventName, Integer taskId, String eventResult, Integer excuteTimes, long eventTimeUsed,
			String messageInfo, byte eventStep,Integer eventCreator) {
		super();
		this.eventName = eventName;
		this.taskId = taskId;
		this.eventResult = eventResult;
		this.excuteTimes = excuteTimes;
		this.eventTimeUsed = eventTimeUsed;
		this.messageInfo = messageInfo;
		this.eventStep = eventStep;
		this.eventCreator = eventCreator;
	}
	public TaskEvent(Integer taskId, byte eventStep) {
		super();
		this.taskId = taskId;
		this.eventStep = eventStep;
	}
	
}
